<form name="form" action="?module=backoffice&action=AjaxSaveBlockParams" method="post" class="nyroModal">
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalTitle.html" title=$blockParams.blockLabel}
    <div id="modalContent">
	<div class="blockParamsSubmit">
		<input type="hidden" value="{$blockParams.blockId}" name="form[blockId]"/>
		<input type="hidden" value="{$blockParams.pageId}" name="form[pageId]"/>
		<input type="hidden" value="{$blockParams.pageLang}" name="form[pageLang]"/>
	</div>
	<table class="listTable">
		<tr>
            <td>{t}Block title{/t}</td>
            <td><input type="text" value="{if isset($blockParams.title)}{$blockParams.title}{/if}" name="form[title]" class="medium" /></td>
		</tr>
		<tr>
            <td>{t}Text in search field{/t}</td>
            <td><input type="text" value="{if isset($blockParams.text)}{$blockParams.text}{/if}" name="form[text]" class="medium" /></td>
		</tr>
		<tr>
            <td>{t}Button text{/t}</td>
            <td><input type="text" value="{if isset($blockParams.buttonText)}{$blockParams.buttonText}{/if}" name="form[buttonText]" class="medium" /></td>
		</tr>
		<tr>            
            {if $searchPage}
            <td>{t}Result(s) page{/t}</td>
            <td>{$searchPage}</td>
            {else}
            <td colspan="2">{icon name="warning.png"} {t}WARNING - you must have a page targeted as "search results".{/t}</td>
            {/if}
		</tr>
	</table>
    </div>
{include file="$MODULES_DIR/backoffice/templates/block/modal/ModalFooter.html"}
</form>